package com.zy.web.demo.duoxiancheng.demo18;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/19 14:17
 */
public class Test18 {

    public static void main(String[] args) throws InterruptedException {
        Object lock = new Object();
        Thread18A A = new Thread18A(lock);
        A.setName("A");
        A.start();
        Thread18B B = new Thread18B(lock);
        B.setName("B");
        B.start();
        Thread18C C = new Thread18C(lock);
        C.setName("C");
        C.start();
        Thread.sleep(1000);
        NotifyThread notifyThread = new NotifyThread(lock);
        notifyThread.start();
    }

}
